package com.rabbit.springrabbitmq.adapter;

/**
 * @Author: JohnCoding
 * @Description: 自定义的消息监听者
 * @date: 2020/8/6 22:55
 */
public class MessageDelegate {

    public void handleMessage(byte[] messageBody){
        System.out.println("handleMessage收到消息："+new String(messageBody));
    }


//    public void dddd(byte[] messageBody){
//        System.out.println("dddd收到消息："+new String(messageBody));
//    }


    public void dddd(String messageBody){
        System.out.println("dddd收到消息："+messageBody);
    }



    public void method1(byte[] messageBody){
        System.out.println("method1收到消息："+new String(messageBody));
    }

    public void method2(byte[] messageBody){
        System.out.println("method2收到消息："+new String(messageBody));
    }
}
